/* =Resets - from Eric Myer's Reset CSS http://meyerweb.com/eric/tools/css/reset/index.html
-----------------------------------------------------------------------------*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
	margin: 0;
	padding: 0;
	border: 0;
	/* outline: 0; */
	font-size: 100%;	
	vertical-align: baseline;
	background: transparent;
}

/* =General and helper
-----------------------------------------------------------------------------
/* Always show the scroolbar, prevents the "jumpy" effect that otherwive occur */
html { 
	overflow-y: scroll;
	overflow-x: auto;
	}

/* Clearing floats */
#wrap, article, nav ul, #commentlist li {
	overflow: hidden;
	zoom: 1;
    }


/* =Primary Content
-----------------------------------------------------------------------------*/

/* =Typography
-----------------------------------------------------------------------------*/
body {
	font: 62.5% "Lucida Grande", Lucida, Verdana, sans-serif;
	font-weight: 100;
	}

h2, h3, h4, h5, h6 {
	font-family: "Trebuchet MS", "Lucida Grande", Verdana, Arial, sans-serif;
	letter-spacing: 0.1em;
	font-weight: 100;
	line-height: 1em;
	margin: 0;
	}

h1 {
	font-family: "Chaparral Pro","Cochin","Didot","Georgia",serif;
	/* "Existence-Light", Georgia, serif; */
	font-weight: 500;
	font-size: 2.4em;
	letter-spacing:0.05em;
	}

h2#post-search {
	text-align: right;
	width: 480px;
	margin-top: 100px;
	}

h2 {
	font-size: 2em; 
	line-height: 1.166em;
	/* background: url(../images/header2.png) no-repeat; */
	padding: 1em 1em 2em 4em;
	margin: 0 0 0 -4em;
	}

h3 {
	font-size: 2em; 
	line-height: 1.166em;
	}

h4 {
	font-size: 1.6em; 
	line-height: 1.313em;
	}
	
article header h4 {
	color: #666;
	} 

h5 {
	font-size: 1.4em; 
	line-height: 1.5em;
	}

p + h2, p + h3, p + h4, p + h5 {
	padding-top: 2em;
	}

h1 a, h2 a, h3 a, h4 a {
	text-decoration: none;
	}
	
h2 + p {
	margin-top: -2em;
	}

article p {
	/* font-family: "Goudy Old Style","Baskerville Old Face",Garamond,Georgia,Times,Serif; */
	/* font-family: Georgia, Serif; */
	font-family: "Chaparral Pro","Cochin","Didot","Georgia",serif;
	text-align: justify;
	font-size: 1.6em;
	line-height: 1.8em;
	}
	
article img, article div, article pre {

	}
	
article header p {	
	float: right;
	clear: both;
	margin-top: 17px;
	}

article section h4.quote {
	font-style: italic;
	}

/* =Structure
-----------------------------------------------------------------------------*/

/* HTML5 fix */
header, menu, section, article, nav, footer, aside, figure, dialog { display: block;} 

body > header {
    width: 820px;
	margin: 0 auto;
    z-index: 3;
    position: relative;
	}


		nav {
			margin: 50px 0 0;
			padding: 0;
			height: 100px;
			}
			
			nav #jump-to-content {
				/* background: rgba(255, 255, 255, 0.35) none repeat scroll 0 0; */
				display: block;
				padding: 5px 0 5px 15px;
				width: 250px;
				}
				
			nav #logo {
				background: url( '../images/contraira-sprites.png' ) no-repeat -470px 0;
	        	width: 288px;
	        	height: 41px;
	        	float: left;
				text-indent: -1000em;
				letter-spacing: -10000em;
				text-decoration: none;

				}
		
		    nav ul {
		    	font-family: "Chaparral Pro", "Cochin", "Didot", "Georgia", serif;
		    	list-style: none;
		    	font-weight: 100;
		    	margin: 0 0 0 400px;
		    	width: 420px;
		    	}
		    	
		    	nav ul li {
		            float: left;
		            height: 100%;
		    		}
		    		          
		            nav ul li a {
		            	width: 100px;
		            	height: 100%;
		            	padding: 25px 0 0;
   			    		margin: 0 60px 0 0;
					    text-decoration: none;
					    letter-spacing: 0.05em;
					    font-size: 0.9em;
					    line-height: 1.2em;
					    display: block;
					    font-style: italic;
					    font-family: "Myriad Pro", "Verdana", sans-serif;
					    background: url( '../images/contraira-sprites.png' ) top left no-repeat;
					    }

						nav #projects {
							margin-right: 0;
							}					    
					    
					    nav #about {
					    	background-position: -160px 0;
					    	}
					    	
					    nav #archives {
					    	background-position: -320px 0;
					    	}
					    
					    	
					    nav ul li a#about:hover {
							background-position: -160px -73px;
						    }
					    
					    nav ul li a#archives:hover {
					    	background-position: -320px -73px;
					    	}
					     
					    nav ul li a#projects:hover {
					    	background-position: 0 -73px;
					    	}
					    
					    nav ul li a span {
					    	display: none;
					    	}
		
			nav ul li.item {
			}
		
		    nav ul li#logo {
    			float: left;
    			width: 37.5em;
    			}
		
			nav ul li#search {
				margin: 0 0 0 1em;
				}
		    		
section#tweet {
	margin: 50px 0 50px;
	padding: 0;
  	width: 820px;
	font-family: "Chaparral Pro", "Cochin", "Didot", "Georgia", serif;
	}

	#tweet small {
		font-size: 0.2em;
		display: block;
		}
	
	#tweet p {
	   	font-size: 5em;
	   	font-style: italic;
	   	text-align: right;
		}

/* =Error
-----------------------------------------------------------------------------*/

.error {
	list-style:none;
	margin: 0 5em 1em 140px;
	color: #da274e;
	font-size: 1.8em;
    }

/* =Primary Content
-----------------------------------------------------------------------------*/

		body {
			margin: 0;
			padding: 0;
			font:62.5% "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Verdana, Arial, Helvetica
			}
			
			article {
				margin: 0 5em;
				}
				
			article + article {
					margin-top: 5em;
				}
				
				article header {
					float: left;
					width: 340px;
					text-align: right;
					padding: 0;
					top: 0;
					}
					
				article section {
					margin: 0 0 0 400px;
					padding: 0;
					}
					
					section > p {
						padding-top: 0.5em;
						}
			
					article section p + p {
						margin-top: 2em;
					}
					
					h1 {
						margin: 0.4em 0 0;
						}
					
					article header h4 {
						margin: 0.9em 0 0.2em;
						}
					
					p {
						text-align: justify;
						margin: 0;
						}

article header div {
	width: 100%;
	display: table;
	}
	
	article header div span, article header div ul {
		display: table-cell;
		white-space: nowrap;
		width: 100%;
		}


article header div span.placeholder {
	background: url( '../images/contraira-sprites.png' ) no-repeat -420px -88px;
	}
	
	article header div span.content {
		padding-left: 10px;
		}
		
	article header div ul.content {
		list-style: none;
		padding-left: 10px;
		}

		article header div ul.content li {
			display: inline;
			background: #fff;
			padding: 0 3px;
			-moz-border-radius: 4px;
			}


article section ul,
article section ol,
article section pre,
article section div {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 1.2em;
	line-height: 1.75em;
	display: block;
	padding: 3em 2em 2em 1em
	}

article section pre {
	padding: 0;
	margin: 1em 0 0;
    }

	/* =Geshicode
	-----------------------------------------------------------------------------*/
	article section .code {
		padding: 1em;
		margin: 1em 0;	
		border: 1px solid black;
		background: #b59966;
	}


	article section .geshicode {
		padding: 1em 1em;
		background: #fff;
		overflow-x: scroll;
		-webkit-box-shadow: 0 2px 4px #999;	
		-moz-box-shadow: 0px 1px 4px 0px #999;
		}

article section ul, article section ol {
	list-style-position: inside;
	}

article section li {
	margin-bottom: 0.75em;
	}

article section li:last-child {
	margin-bottom: 0.0em;
	}

article section ul {
	list-style-type: square;
	}

article section ul.no-bullets {
	list-style: none;
}

article section ul.float-left {
	float: left;
}

/* =Page selector
-----------------------------------------------------------------------------*/

#page-selector {
	font-family: "Helvetica Neue",Verdana,"Bitstream Vera Sans",sans-serif;
	font-size: 1.3em;
	font-weight: 100;
	text-align: left;
	margin: 0 3.125em 3em 500px;
	padding: 0 0 0 3.125em;
	max-width: 40.2em;
	}
			#page-selector a {
				width: 180px;
				float: left;
				}

			#page-selector .next-page {
				float: right;
				}

			#page-selector a:hover {
				color: #000;
				text-decoration: none;
				}

/* =Footer
-----------------------------------------------------------------------------*/

footer {
    background: url('../images/background-2.png') 0 0 repeat-x;
	height: 350px;
	width: 100%;
	bottom: 0;
	z-index: 100;
    }

	#sprites {
		background: url( '../images/contraira-sprites.png' ) -80px -90px;
		width: 326px;
		margin-top: 40px;
		height: 240px;
		position: absolute;
		top: -273px;
		}

    #footerContent {
		margin: 60px auto 10px;
		width: 820px;
    	}

		#footerContent p {
			font-family: "Helvetica Neue",Verdana,"Bitstream Vera Sans",sans-serif;
			font-size: 1.3em;
			font-weight: 100;
			text-align: left;
			color: #fff;
			margin-left: 400px;
			}

			footer p a:hover {
				color: #fff;
				}

/* =Tables
-----------------------------------------------------------------------------*/

table {
	border-spacing: 0;
	border-collapse: collapse;
    }

td {
	text-align: left;
	font-weight: normal;
    }

/*Comments-----------------------------------------------------------------------------*/

		ul#commentlist li {
			margin: 0 0 40px;
			}

			ul#commentlist li .comment-meta {
				float: left;
				width: 340px;
                }
			
			ul#commentlist li .comment-content {
				margin: 0 0 0 400px;
                }


		ul#commentlist li.comment-unapproved {
			background: #fcc;
    		}

        #commentlist h4 {
            margin: 0 70px 0 0;
            text-align: right;
            }

        #commentlist .cal {
            display: block;
            margin: 0 70px 0 0;
            text-align: right;
            }

		#commentlist h4 a span {
			font-size: 0.8em;
			color: #666;
			float:  none;
			display: block;
			visibility: hidden;
			}

		#commentlist h4 a:hover span {
			visibility: visible;
			}

	#commentlist img {
        float: right;
		margin: 0;
		padding: 0;
		height: 60px;
		width: 60px;
		border: none;
		}

/* !commentform styling */

/* !All boxes */
#pings-list, #commentform form {
	width: 820px;
	margin: 0 auto;
	}

#commentlist {
	width: 820px;
	margin: 0 auto;
	list-style: none;
	}

#comments h3 {
	width: 820px;
	margin: 0 auto;
	padding: 1.25em 0;
	text-align: right;
	}


#commentform {
	background: #e8e7b7 url( '../images/body_blue.jpg' ) repeat-x top center;
	padding: 0 0 300px;
	border-top: 7px solid #a4dee2;
	position: relative;
	z-index: 10;
	}

	#commentform h2 {
		text-align: left;
		margin: 40px auto;
		width: 820px;
		padding: 0;
		float: none;
		}
   
    fieldset#textarea label {
    	display: none;
    	}

legend {
    font-size: 1.6em;
	padding: 0;
	}


fieldset#aboutyou {
    float: left;
    width: 340px;
    }
    
    fieldset#aboutyou strong {
    	text-align: right;
    	display:block;
    	}
    
    fieldset#aboutyou .formcontrol {
    	margin: 0 0 1em 0;
    	}
    
	#aboutyou legend {
		padding: 0 0 10px 0;
		}

	#aboutyou label {
		width: 80px;
		text-align: right;
		background: #bfbfbf;
		float: left;
		padding: 1em;
		}

	#aboutyou input {
		display: block;	
		font-family: "Lucida Grande",Lucida,Verdana,sans-serif;
		font-weight: 900;
		margin: 0;
		width: 220px;
		font-size: 1.0em;
		padding: 1em;
		border: none;
		}

	#aboutyou input, textarea {
		color: #999;
		}
		
		#aboutyou #cf_submit {
			float: right;
			margin: 20px 0 0
			}


fieldset#textarea {
	margin: 0 0 0 400px;
	padding: 0;
	
    }

	fieldset#textarea textarea {
		font-size: 1.6em;
		height: 180px;
		padding: 10px;
		width: 400px;
    	margin: 10px 0 0;
    	border: none;
		}
	
textarea:hover, #aboutyou input:hover {
    background: #a4dee2;
    color: #fff;
	}

#cf_submit input {
	width: auto;
	color: #000;
	background: #666;
	padding: 5px;
	margin: 10px 0;
	border: 1px solid transparent;
	font-size: 1.5em;
	float: right;
	}


/* =Colors
-----------------------------------------------------------------------------*/

body > header {
    height: 100px;
	}
    
#sidebar {
    background: #a9c157 url('../images/gray.png') 0 0 repeat-x;
    }
    
nav ul li {
	}
    
	nav ul li a {
		color: #000;
		}
	
		nav ul li a:hover {
			color: #fff;
	        }
	
		nav ul li.current a {
			color: #fff;
			}
	    
			nav ul li a#about span {
			    color: #99cc33;			    
			    }
			    
			nav ul li a#archives span {
			    color: #da274e;
			    }
			    
			nav ul li a#projects span {
			    color: #468af8;			    
			    }  
    
body {
	background: #fcfcf6 url( '../images/background-2.png' ) repeat-x center -8px;
	color: #000;
	}
	
body #articles {
	margin: 0em auto 300px;
	width: 820px;
	}
	
	body#display_entry #articles {
		margin-bottom: 0;
		}
	
	body #articles article {
		margin: 0 auto 5em;
		}
	
	h1 {
		color: #545454;
		}

	h2, h3, h4, h5 {		
		color: #000;
		}

/* =Links
-----------------------------------------------------------------------------*/

a {
	color: #000;
	text-decoration: none;
	}

article section h2 a, article section h3 a, article section h4 a {
	color: #000;
	}
	
	article section .tumble-archive a {
		color: #000;
		}
		
		article section h4.exp {
			margin-left: 1em;
			}

article section a {
	color: #fff;
	text-decoration: none;
	}

article section a:hover {
	color: #000;
	}

h1 a, h2 a, h3 a, h4 a, h5 a {
	color: #1c2124;
	}

h2 a:hover, h1 a:hover {
	color: #333;
	}

article section p a {
	color: #fff;
	}
	
article section p a:hover {
	color: #000;
	}
	
img#tweet {
	-moz-box-shadow: 0 0 5px #999;
	-webkit-box-shadow: 0 0 5px #999;
	margin: 50px 0 50px 5px;
	width: 810px;	
}
	
article section img {
	/* max-width: 41em; */
	border: 0.334em solid white;
	/* display: block; */
	width: 100%;
	-moz-box-shadow: 0px 1px 4px 0px #999;
	-webkit-box-shadow: 0 2px 4px #999;	
	}
	
	article section p + article section img {
		margin: 1em 0;
		}

article section a img {
	/* border-color: #333; */
	}
	
article section a:hover img {
	border-color: #666;
	}
